<?php
class ActivityConf_getPlatformInfo {
	function getPlatformInfo($game) {
		$gameLang = MooConfig::get('game_lang.zh_en');
		
		if($gameLang[$game]) {
			$game = $gameLang[$game];
		}
		
		$activityConf = MooConfig::get('activityconfig');
		if(!$activityConf) {
			exit(0);
		}
		
		$platConf = $activityConf['platConf'];
		
		$platform = $platConf[$game]['platform'];
		
		return MooJson::encode($platform);
	}
}